const mongoose = require('mongoose')
require('../connect')

const Schema = mongoose.Schema

const Userschema = new Schema({
    _id:String,
    username:String,
    password:String,
    age:{
        type:String,
        default:"暂无"
    },
    sex:{
        type:String,
        default:"暂无"
    },
    emial:{
        type:String,
        default:"暂无"
    },
    token:{
        type:String,
        default:''
    },
    // 我的收藏
    myCollection:[],
    // 我的帖子
    myPosts:[],
    // 我的点赞
    myCommen:[],
    
})

const UserModel = mongoose.model('users',Userschema)


module.exports = UserModel